package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门店商品套餐对象 store_product_package
 *
 * @author ruoyi
 * @date 2025-05-28
 */
public class StoreProductPackage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，自增唯一标识 */
    private Long id;

    /** 门店名称，例如“XX分店”“城市旗舰店”等，不允许为空 */
    @Excel(name = "门店名称，例如“XX分店”“城市旗舰店”等，不允许为空")
    private String storeName;

    /** 门店编号，唯一标识门店的编码，例如“STORE001”“SH_001”等，不允许为空 */
    @Excel(name = "门店编号，唯一标识门店的编码，例如“STORE001”“SH_001”等，不允许为空")
    private String storeCode;

    /** 套餐总数，统计该门店已发布的商品套餐数量，默认为0 */
    @Excel(name = "套餐总数，统计该门店已发布的商品套餐数量，默认为0")
    private Long totalPackageCount;

    /** 套餐分类数，统计该门店的套餐分类数量（如早餐套餐、午餐套餐等），默认为0 */
    @Excel(name = "套餐分类数，统计该门店的套餐分类数量", readConverterExp = "如=早餐套餐、午餐套餐等")
    private Long categoryCount;

    /** 记录创建时间，默认为当前时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间，默认为当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录更新时间，默认为当前时间，更新时自动刷新 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间，默认为当前时间，更新时自动刷新", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 状态标识，0=禁用，1=启用（默认启用），用于控制门店套餐数据是否有效 */
    @Excel(name = "状态标识，0=禁用，1=启用", readConverterExp = "默=认启用")
    private Integer isActive;

    /** 门店地址，用于展示门店的详细位置信息，允许为空 */
    @Excel(name = "门店地址，用于展示门店的详细位置信息，允许为空")
    private String address;

    /** 门店联系电话，用于用户咨询或下单，允许为空 */
    @Excel(name = "门店联系电话，用于用户咨询或下单，允许为空")
    private String contactPhone;

    /** 区域编码，例如“华东区”“华北区”等，用于区域化管理，允许为空 */
    @Excel(name = "区域编码，例如“华东区”“华北区”等，用于区域化管理，允许为空")
    private String regionCode;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setStoreName(String storeName)
    {
        this.storeName = storeName;
    }

    public String getStoreName()
    {
        return storeName;
    }

    public void setStoreCode(String storeCode)
    {
        this.storeCode = storeCode;
    }

    public String getStoreCode()
    {
        return storeCode;
    }

    public void setTotalPackageCount(Long totalPackageCount)
    {
        this.totalPackageCount = totalPackageCount;
    }

    public Long getTotalPackageCount()
    {
        return totalPackageCount;
    }

    public void setCategoryCount(Long categoryCount)
    {
        this.categoryCount = categoryCount;
    }

    public Long getCategoryCount()
    {
        return categoryCount;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    public void setIsActive(Integer isActive)
    {
        this.isActive = isActive;
    }

    public Integer getIsActive()
    {
        return isActive;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }

    public void setContactPhone(String contactPhone)
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone()
    {
        return contactPhone;
    }

    public void setRegionCode(String regionCode)
    {
        this.regionCode = regionCode;
    }

    public String getRegionCode()
    {
        return regionCode;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("storeName", getStoreName())
                .append("storeCode", getStoreCode())
                .append("totalPackageCount", getTotalPackageCount())
                .append("categoryCount", getCategoryCount())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("isActive", getIsActive())
                .append("address", getAddress())
                .append("contactPhone", getContactPhone())
                .append("regionCode", getRegionCode())
                .append("phone", getPhone())
                .toString();
    }
}
